package com.foreknow.springboot.service.Impl;

import com.foreknow.springboot.mapper.UserMapper;
import com.foreknow.springboot.po.User;
import com.foreknow.springboot.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class UserServiceImpl implements UserService {

    @Autowired
    private UserMapper userMapper;

    @Override
    public User getUserByIdByPass(String userId, String password) {
        return userMapper.getUserByIdByPass(userId,password);
    }

    @Override
    public int getUserById(String userId) {
        return userMapper.getUserById(userId);
    }

    @Override
    public int saveUser(String userId, String password, String userName, Integer userSex) {
        return userMapper.saveUser(userId,password,userName,userSex);
    }
}
